package day14_junit_reflect_annotation_proxy.com.itheima.d1_junit;

public class StringUtil {
    public static void printNumber(String name){
        if (name == null){
            System.out.println("name不能为空");
            return;
        }
        System.out.println("name.length() = " + name.length());
    }

    public static int getMaxIndex(String data){
        if (data == null){
            System.out.println("data不能为空");
            return -1;
        }
        return data.length() - 1;
    }
}
